package com.ruoyi.system.service;

import java.util.List;
import com.ruoyi.system.domain.CwShoppingCart;

/**
 * 购物车Service接口
 * 
 * @author ruoyi
 * @date 2025-03-30
 */
public interface ICwShoppingCartService 
{
    /**
     * 查询购物车
     * 
     * @param cartId 购物车主键
     * @return 购物车
     */
    public CwShoppingCart selectCwShoppingCartByCartId(Long cartId);

    /**
     * 查询购物车列表
     * 
     * @param cwShoppingCart 购物车
     * @return 购物车集合
     */
    public List<CwShoppingCart> selectCwShoppingCartList(CwShoppingCart cwShoppingCart);

    /**
     * 新增购物车
     * 
     * @param cwShoppingCart 购物车
     * @return 结果
     */
    public int insertCwShoppingCart(CwShoppingCart cwShoppingCart);

    /**
     * 修改购物车
     * 
     * @param cwShoppingCart 购物车
     * @return 结果
     */
    public int updateCwShoppingCart(CwShoppingCart cwShoppingCart);

    /**
     * 批量删除购物车
     * 
     * @param cartIds 需要删除的购物车主键集合
     * @return 结果
     */
    public int deleteCwShoppingCartByCartIds(Long[] cartIds);

    /**
     * 删除购物车信息
     * 
     * @param cartId 购物车主键
     * @return 结果
     */
    public int deleteCwShoppingCartByCartId(Long cartId);
}
